package com.kingdee.eas.custom.myinterface.app;

import org.apache.log4j.Logger;
import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;

import java.lang.String;
import java.math.BigDecimal;

import com.kingdee.eas.custom.myinterface.PayTypeEnum;
import com.kingdee.eas.custom.myinterface.Payment;
import com.kingdee.eas.custom.myinterface.PaymentInfo;
import com.kingdee.eas.custom.myinterface.util.SyncPaymentUtil;

public class SyncPaymentFacadeControllerBean extends AbstractSyncPaymentFacadeControllerBean
{
    private static Logger logger =
        Logger.getLogger("com.kingdee.eas.custom.myinterface.app.SyncPaymentFacadeControllerBean");

	@Override
	public String syncPaymentBillAddNew(Context ctx, String billNumber,
			BigDecimal prePayment, BigDecimal realPayment,
			String contractNumber, String contractName,
			String costAccountNumber, String costAccountName,
			String projectNumber, String projectName, String companyNumber,
			String companyName, String supplierNumber, String supplierName,
			String currency, String summary) throws BOSException {
		String result = SyncPaymentUtil.syncPaymentBillAddNew(ctx, billNumber, prePayment, realPayment, contractNumber, contractName, costAccountNumber, costAccountName, projectNumber, projectName, companyNumber, companyName, supplierNumber, supplierName, currency, summary);
		
		return result;
	}

	/*
	@Override
	public String syncPaymentBillUpdate(Context ctx, String billNumber,
			BigDecimal prePayment, BigDecimal realPayment, String payType,
			String contractNumber, String contractName,
			String costAccountNumber, String costAccountName,
			String projectNumber, String projectName, String companyNumber,
			String companyName, String supplierNumber, String supplierName,
			String summary) throws BOSException {
		String result =  SyncPaymentUtil.syncPaymentBillUpdate(ctx, billNumber, prePayment, realPayment,
				payType, contractNumber, contractName, costAccountNumber,
				costAccountName, projectNumber, projectName, companyNumber,
				companyName, supplierNumber, supplierName, summary);
		return result;
	}
    */
	
    
}